package com.bookstore.common.constant;

/**
 * 用户常量
 */
public class UserConstants {

    /**
     * 用户类型：普通用户
     */
    public static final int USER_TYPE_NORMAL = 1;

    /**
     * 用户类型：商家用户
     */
    public static final int USER_TYPE_MERCHANT = 2;

    /**
     * 用户类型：管理员
     */
    public static final int USER_TYPE_ADMIN = 3;

    /**
     * 用户状态：禁用
     */
    public static final int USER_STATUS_DISABLED = 0;

    /**
     * 用户状态：正常
     */
    public static final int USER_STATUS_NORMAL = 1;

    /**
     * 用户状态：锁定
     */
    public static final int USER_STATUS_LOCKED = 2;

    /**
     * 登录类型：密码登录
     */
    public static final int LOGIN_TYPE_PASSWORD = 1;

    /**
     * 登录类型：短信验证码
     */
    public static final int LOGIN_TYPE_SMS = 2;

    /**
     * 登录类型：社交登录
     */
    public static final int LOGIN_TYPE_SOCIAL = 3;

    /**
     * 登录类型：生物识别
     */
    public static final int LOGIN_TYPE_BIO = 4;

    /**
     * 登录结果：成功
     */
    public static final int LOGIN_RESULT_SUCCESS = 1;

    /**
     * 登录结果：失败
     */
    public static final int LOGIN_RESULT_FAILED = 0;

    /**
     * 设备类型：PC
     */
    public static final int DEVICE_TYPE_PC = 1;

    /**
     * 设备类型：移动端
     */
    public static final int DEVICE_TYPE_MOBILE = 2;

    /**
     * 设备类型：平板
     */
    public static final int DEVICE_TYPE_TABLET = 3;
}